﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ActivePalInterop.Data
{
    /// <summary>
    /// Every concrete data format has to inherite this interface in order to upload data
    /// </summary>
    public interface IUploadableData
    {
        /// <summary>
        /// Database table name
        /// </summary>
        string TableName { get; }

        /// <summary>
        /// Ammount of data to be write as bulk insert
        /// </summary>
        int CommitBatchSize { get; }

        /// <summary>
        /// Mapped columns of the database table
        /// </summary>
        DataColumnCollection Columns { get; }

        /// <summary>
        /// Indicates how many rows should be skipped
        /// </summary>
        int SkippedHeaderCount { get; set; }
    }
}
